package cn.com.chengmandian.bike.controller;


import cn.com.chengmandian.agent.utils.AuthUtil;
import cn.com.chengmandian.bike.service.IEbRechargeSettingService;
import cn.com.chengmandian.core.web.pojo.AjaxResult;
import cn.com.chengmandian.core.web.utils.LocalMapUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 电单车运营-充值金额配置 前端控制器
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-03-02
 */
@Api(tags = "充值金额配置相关接口")
@RestController
@RequestMapping("/recharge/setting")
public class EbRechargeSettingController {

    @Resource
    private IEbRechargeSettingService rechargeSettingService;

    @ApiOperation("查询充值金额配置")
    @GetMapping("/list")
    public AjaxResult selectRechargeList(){
        Integer areaId = LocalMapUtil.getAgentInfo().getAreaId();
        return AjaxResult.success(rechargeSettingService.selectRechargeList(areaId));
    }
}
